package ru.megazlo.basemvc.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import ru.megazlo.basemvc.controllers.base.Action;
import ru.megazlo.basemvc.controllers.base.BaseController;

import javax.servlet.http.HttpServletResponse;

@Controller
public class HomeController extends BaseController {

	@RequestMapping("/")
	@Action
	public Object index(HttpServletResponse response) {
		// Вызов сервиса обработка данных
		return getResult("message", "Body Content goes Here!", response);
	}

	@RequestMapping("/contact")
	@Action
	public Object contact(HttpServletResponse response) {
		return getResult(response);
	}

	@RequestMapping(value = "/about")
	@Action
	public Object about(HttpServletResponse response) {
		return getResult(response);
	}
}
